/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans.data;

import datamodel.Post;
import ejb.PostManager;
import java.sql.Timestamp;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

/**
 *
 * @author Administrator
 */
@ManagedBean(name = "post")
@ApplicationScoped
public class PostBean {

    @EJB
    PostManager pm;

    public List<Post> getPosts() {
        return pm.getAllPosts();
    }
}
